some fixes in gpkg for handling conf files properly when removing a package