Use :exist? instead of :exist in ssh key detection stub and use expect