add GIT_DIR option when constructing core.excludes matchers