Updated to work with compilers that add ".exe" to output files