Replace underscore with hypen in tmp filename.