Use perl File::Temp for removable directory instead of manual pseudo-tmpfile implementation