make Rio work when TMPDIR has no trailing slash