Stop generating VersionNum files with trailing spaces
This only applies to the Module_MinorVersion_CMHG line, for commits on master.
Without this change, many components that would otherwise pass the CI
whitespace job will fail, either for pipelines running on master, or on
development branches where the developer used git commit
rather than
srccommit
and therefore inherits the line from the master revision on which
it is based.