Clean up and test

Fails if git is not installed.  Patch to eliminate the check.
