Fix temporary file emplacement