Update how versions are generated

Part of changes made in gt-gtk