Expand ssh key path so ~ can be used
Refactor specs