Added tmp_dir support
Merge pull request #77 from solarkennedy/tmpdir

Adds support for TMPDIR Configuration