Updated PluginLoader for composer compatibility.