parse onecmd differently for commands executed over ssh.