HOTFIX: handle BUILD constants with custom pre-release information even more properly.