fix calculation of required size on install for gpkg