Print something on unexpected errors
Wrap problematic git commands and try to increase stack space for them
Make git version check more robust