Set TMP and TMPDIR.
Merge pull request #45 from jvalleroy/set-tmpdir

Set TMP and TMPDIR.