Fix #41 (make git work on OSX and in tree view)