fix mods folder cleanup issues on updating