Attempt to simplify and sanitize git handling
Merge pull request #1640 from OCamlPro/git-fix

Attempt to simplify and sanitize git handling