quote $SSH_CLIENT in prompt test.

use "command -v" instead of "-x `which …`" to see if something exists. see: http://stackoverflow.com/questions/592620/check-if-a-program-exists-from-a-bash-script