don't take into account stderr unless needed

it may happen that ssh exits 0 but something is displayed on its stderr, which
is unlikely to be valid json. thus don't try to parse it as such and display it
only when needed.