Fix git checking to recognize ignored directories.
Fix git checking to recognize ignored directories.

This makes it possible to correctly identify non-git repos in an ignored directory (as in /OF/addons/)
bilderbuchi/ofStateManager