be more compatible with old File::Temp