Solves problem of git checks in 'init' and 'upgrade' targets