fixed plugin loading bug

Fixed a bug with having plugins in the folder, but none of them selected to be loaded.
Previously, the code would load all plugins available, and ignore the ones enabled in the config.