deal with trailing DIRSEP at end of $ENV{TMPDIR}
Merge pull request #1 from rehsack/master

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