Implement fixes discussed in MDO topic

 - Move SSH keygen to after the git clone, to give the kernel some more entropy
 - Add directory to git clone command