Fix handling of temporary files.