change $*CWD and $*TMPDIR to IO::Path objects
 by request from dagurval++ and S16 spec