harden the remote platform/uname detection against shell stderr output.