fix a few bugs with gpkg install functionality