Put the BUILD_REVISION checking back in, but in the right place. It was being overwritten by later PropertyGroups before.