minor tweaks in core. now unloads the current modpack if a mod is deleted that is contained in it