Use File::Temp directly.

Path::Class only recently got `temdir()`, so avoid it for now to keep compatibility requirements simpler.