Correct git_dir for submodules

In submodule .git is not directory. It is a file with path to git directory like that:
gitdir: /path/to/git/directory