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