Fix crash when repo root does not exist