Really fix GIT_DIR detection of Repository