misc: minor fix and cleanup on the cmake version script