Minor fix to improve 1.8/1.9 cross-compat in tmpdir.rb