Fix undefined variable $user in create_key
Fix sshkey fact for usernames with dashes or dots