[Bug 47791] Inconsistent %ERRORLEVEL% after setting env var value in cmd.exe