Improve Windows shell discovery (#63339)

- Simplify PowerShell discovery, and add support for .NET global tool
installations.
- Fix Git Bash discovery in the case where Zed was launched from within
Git Bash. Git Bash prepends its internal `mingw64\bin` directory to
`PATH`, so `which git` returns a different `bash` executable that causes
the relative path lookup to fail.

Release Notes:

- N/A
4c6c4750d3John Tur committed on 8/28/2026, 3:21:39 AM· committed by GitHubparentfa8d0b7
3 files changedLine totals unavailable