Fix use of File::Temp in tests for File::Temp 0.23

File::Temp had some API changes between 0.22 and 0.23.  Specifically
calling tempfile() and tempdir() will die fatally if you call them as
class methods (File::Temp->tempfile(...).)