Fixed #270: Tempfile wasn't working when TMPDIR didn't end with a slash.