Improve regexp for ip address in ping and ssh

+ accept hostname address only if ends with 2 alphabetic characters

this should resolve first part of #139