fixed RT #72862, unsafe use of /tmp

https://rt.cpan.org/Ticket/Display.html?id=72862