support TMPDIR env var