Fix #169

File::Temp->newdir isn't available in Perl 5.10. Using
File::Temp::tempdir instead.