tempdir: use `os.tmpDir` when possible
changes per @arturadib's code review
Merge pull request #67 from stephenmathieson/os-dot-tmpdir

tempdir: use `os.tmpDir` when possible