fixed for git repo root check