Fix SSH detection