build: refactor GR_GIT and GR_VERSION