Preserve cmd.run variants issued over SSH.

Previously SSH quashed cmd.run_stdout, cmd.run_stderr and cmd.run_all
to cmd.run.

Fixes #10415