Allow GIT_DIR env variable to override auto-detected directory

in gitInfo gradle task

[#74546134] https://www.pivotaltracker.com/story/show/74546134