Detect separated git-dir (e.g. submodule)
fixed current_branch()