A few calls to putenv() overwrite the default directory, call sys_get_temp_dir() to see it if was set successfully.
You can also set the temp directory using the "cgi_temp_dir" option in the settings.json file.