Use the environment to get the current sha when GIT_SHA is defined.