fixed ssh detection