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
Merge pull request #147 from tbunnyman/master

Move git_init check into it's own block under have_git