Set BUILD_VERSION to the content of the version descriptor (version.txt) if it changed in the last commit, assuming that the last commit was a release preparation commit that updated the version descriptor. Close #4928