Switch temp file creation methods to File::Temp