Set TMP and TMPDIR for some programs that need it