Extract a script for the travis build, so I can test it locally more easily.
exit from the build when things go south.
Revert "Bump libgit2sharp."

This reverts commit 0cc5b97f78f1865501444e8b4e561031e8b70320.
Tidy up the corners.