fix issue with gpkg remove, where we don't load all dependencies to test whether something depends on a package