- added support for TMPDIR env variable