Move git_init into it's own block under have_git

This allows gitignore to be generated even if we don't wish to initialize this as it's own git repo
This is a quick fix for Issue #145