fix more bugs in version code for gpkg