Introduce GIT_DIR environment variable.