Check and generate pub ssh key

There are some situations where ~/.ssh would exist but without
keys (ssh from a new box and generating a .ssh/known_hosts).
Now we check for the existence of key and not the folder.

Closes-Bug: #1240133

Change-Id: I1565fbf96c53d0c43db02781b15fb15c26757b08