Don't overwrite TEMP environmental variable

Overwriting of environmental variables isn't recommended, so use TMP instead of TEMP.