remote: Use last line of `uname` and shell output (#44165)

We have seen cases (see
https://github.com/zed-industries/zed/issues/43694) where the user's
shell initialization script includes text that ends up in the output of
the commands we use to detect the platform and shell of the remote. This
solution isn't perfect, but it should address the issue in most
situations since both commands should only output one line.

Release Notes:

- remote: Improve resiliency when initialization scripts output text
822fc7ef16Agus Zubiaga committed on 12/5/2025, 1:04:01 PM· committed by GitHubparent126d708
1 file changedLine totals unavailable