remote: Finer grained `--exec` attempts (#43987)

Closes https://github.com/zed-industries/zed/issues/43328

Instead of trying to guess whether we can `--exec`, this now
restructures things to only attempt to use that flag where its
necessary. We only need to `--exec` when we are interested in the shell
output after all.

Release Notes:

- Fixed wsl remoting not working with some nixOS setups
a2f69cd5bdLukas Wirth committed on 12/2/2025, 11:50:25 AM· committed by GitHubparent6a09729
1 file changedLine totals unavailable