For system both TEMP and TMP are G:\WINDOWS\TEMP. For user they both are G:\Documents and Settings[i]username[/i]\Local settings\Temp.
It almost feels that there is a hard-coded folder name somewhere in the code.