Detect '.git' file (for separated git-dir e.g. submodule)
Change directory when execute command