Set shelltemp before run shell command and reset it after that on Windows.