Fix poor calls to ssh_get_error