Fix to avoid showing repo as dirty if outside the repo root.