fix broken tempdir removal
force rm tempfiles (no rescue nil); use right var
Merge pull request #4861 from obfusk/fix-tmpdir-delete

fix broken tempdir removal