Allow non-root users to clone a repo

Without this, git will report that it can't change back to /root
Merge pull request #59 from binford2k/clone_as_non-root_user

Allow non-root users to clone a repo

Merging my own PR because it's just a rework of an existing PR.