Re-use ssh connection

- Previously only re-using if no flags were supplied; now re-use also
  if it's just that stdout/stderr have custom capturing.
  Important for SshSensorAdapter.
Merge pull request #443 from aledsage/fix/reuse-ssh-connection

Re-use ssh connection