Refactor node search for knife ssh.