prefer closest ancestor repo in repo root dir discovery