Fix for #336

This patch makes sure Rex won't ever be asked to enter some passphrase or whatever related to public key authentication.

It also contains some fix for typos I found while reading the source code.