Fixed temporary files to be Windows compatible