Just an idea : always use the plugin name as the dir name in `PLUGINS`, to avoid those tests and too many string functions..