Fixes git export to support repositories with dots in their name

Currently the export to git will cut off the "extension" of the repository name and export the courseware to the wrong directory.  This corrects this behavior and adds a regression test to validate the fix.