deal with trailing DIRSEP at end of $ENV{TMPDIR}