Fix generate_builddata.cmake for version check.