keep the compiled version number up to date always, not just on cmake runs

close #504