Fixed checks for homeshicks and sshkeys