Well, there is actually no problem.
Version.inc just contains the "copy" of the folder name, e.g. '(program)-date-version' and is used only for logs (e.g. if someone would send me a log, I know exactly what game version he/she is talking about). Made "for git sake" so that just changing a version doesn't create a diff for main unit.
The inconvenience is that I have to accurately select the last variant and copy-paste the new one preserving apostrophe symbols (or write them fresh). Such procedure happens once a day (at most twice) and so it's not a problem, must a minor inconvenience.
Practically if it can't be done by pure FPC syntax (compile-time), then I don't think it is worth it, as it will just add more inconvenience (launching some pre-compilation commands, or reading files, or using external tools). So if there is no "native" way to do this, I'm perfectly fine with apostrophes in version.inc