Misc error-handling, added initial test for Git (and curses)