Detect '.git' file (for separated git-dir e.g. submodule)