Add an option about git submodules to ignore

Hi there

I found that when checking whether a git repo is clean, zsh always ignore dirty submodules,
no matter what was specified in '.gitmodules' file.
So I added an option to enable overriding this behavior.
When this option is not set, `git` lib should work as before. See commit message for more details.