Simplify the code a bit.
g_mods{Available,Enabled} just are a list of folders. The JSONs are within g_mods and aren't changed at runtime.