use File::Temp to create temporary directory for testing. RT #92833