Refactor how GIT_BUILD_STR is generated