Fixed temporary file name generation