Allow non-root users to clone a repo

Without this, git will report that it can't change back to /root

This is a rework of @xgoat's pull request at https://github.com/puppetlabs/puppetlabs-vcsrepo/pull/42