The Plugin::Instance.find_all method incorrectly treats every file with the «plugin.rb» name as a Discourse plugin

Moreover, looks like the buggy code is also unefficient, because it searches for the «plugin.rb» files in all the filesystem tree inside the «plugins» directory, despite the Discourse’s «plugin.rb» files are always on the second level in this tree.