Repository: vscode
Issue: Remote-SSH connection failure when "PATH" contains "${workspaceRoot}" in "terminal.integrated.env.windows" 
Labels: bug,help wanted,remote,terminal-process

Version : 1.61.1 (user setup)
Commit: c13f1abb110fc756f9b3a6f16670df9cd9d4cf63
Date: 2021-10-14T01:19:42.089Z
Electron: 13.5.1
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.19043 (win10 64bit)

Remote-SSH Version: `v0.65.8`

oepnssh installed:

```
> where ssh
C:\Windows\System32\OpenSSH\ssh.exe
```

Steps to Reproduce:

1. include `${workspaceRoot}` element into your `settings.json` -> `terminal.integrated.env.windows` -> `PATH`

```
// for example:
    "terminal.integrated.env.windows": {
        "PATH": "${env:PATH};${workspaceRoot}"
    },
```

2. connect to some host via Remote-SSH(ex: Connect to Host in New Window) -> **connection failure**.
   - connection target host : Linux
   - connecting to same host via `ssh.exe` in command prompt results success.
3. remove `${workspaceRoot}` from "PATH" and try connect again -> **connection success**.

**error log**:

```
[16:17:13.044] Log Level: 2
[16:17:13.053] remote-ssh@0.65.8
[16:17:13.053] win32 x64
[16:17:13.055] SSH Resolver called for "ssh-remote+xxx-dev-cs8", attempt 1
[16:17:13.056] "remote.SSH.useLocalServer": false
[16:17:13.056] "remote.SSH.showLoginTerminal": false
[16:17:13.057] "remote.SSH.remotePlatform": {"xxx-dev-cs8":"linux"}
[16:17:13.057] "remote.SSH.path": undefined
[16:17:13.057] "remote.SSH.configFile": undefined
[16:17:13.058] "remote.SSH.useFlock": true
[16:17:13.058] "remote.SSH.lockfilesInTmp": false
[16:17:13.058] "remote.SSH.localServerDownload": auto
[16:17:13.059] "remote.SSH.remoteServerListenOnSocket": false
[16:17:13.062] "remote.SSH.showLoginTerminal": false
[16:17:13.062] "remote.SSH.defaultExtensions": []
[16:17:13.062] "remote.SSH.loglevel": 2
[16:17:13.063] SSH Resolver called for host: xxx-dev-cs8
[16:17:13.063] Setting up SSH remote "xxx-dev-cs8"
[16:17:13.090] Using commit id "c13f1abb110fc756f9b3a6f16670df9cd9d4cf63" and quality "stable" for server
[16:17:13.095] Install and start server if needed
[16:17:13.106] Checking ssh with "ssh -V"
[16:17:13.170] > OpenSSH_for_Win
[16:17:13.170] > dows_8.1p1, LibreSSL 3.0.2

[16:17:13.180] Running script with connection command: ssh -T -D 58730 "xxx-dev-cs8" bash
[16:17:13.184] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[16:17:13.440] > 'ssh' は、内部コマンドまたは外部コマンド、
> 操作可能なプログラムまたはバッチ ファイルとして認識されていません。
^^^^^^^^^^ # this  is japanese cmd.exe error message, saying "cmd.exe couldn't find ssh executable in PATH environment."
> ]0;C:\WINDOWS\System32\cmd.exe
[16:17:13.440] Got some output, clearing connection timeout
[16:17:14.711] "install" terminal command done
[16:17:14.712] Install terminal quit with output: ]0;C:\WINDOWS\System32\cmd.exe
[16:17:14.713] Received install output: ]0;C:\WINDOWS\System32\cmd.exe
[16:17:14.714] Failed to parse remote port from server output
[16:17:14.715] Resolver error: Error: 
	at Function.Create (c:\Users\xxx\.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.8\out\extension.js:1:397041)
	at Object.t.handleInstallOutput (c:\Users\xxx\.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.8\out\extension.js:1:395684)
	at Object.t.tryInstall (c:\Users\xxx\.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.8\out\extension.js:1:489314)
	at processTicksAndRejections (internal/process/task_queues.js:93:5)
	at async c:\Users\xxx\.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.8\out\extension.js:1:453110
	at async Object.t.withShowDetailsEvent (c:\Users\xxx\.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.8\out\extension.js:1:456460)
	at async Object.t.resolve (c:\Users\xxx\.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.8\out\extension.js:1:454189)
	at async c:\Users\xxx\.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.8\out\extension.js:1:526942
[16:17:14.726] ------
```