[PTFM-8566] Fix versioning and code duplication in CMakeFiles
[PTFM-8566] Fix miscellaneous uses of git describe