Fixes git export to support repositories with dots in their name
Added git clean to git export feature
This ensures that additional exports of the content are the
same the first.
Merge pull request #5115 from mitocw/cg/bugfix/add_git_clean

Fixes git export to support repositories with dots in their name and cleans export repo