Setting the HOME variable worked, thanks bharder.

I'm reclassing this as a doc bug, because at minimum there should be some mention that the clone command requires that the HOME var be set.  But I would suggest eliminating the requirement in the code.  I don't see any reason why it would be a necessity.

Also, I'll guess that the cryptic error message quoted above was intended to read: "cannot locate home directory."