add TEMPDIR environment variable