support for GIT_DIR environment var