Fix #168 - Detect errors running git commands.