Have makepot search for the main file of the plugin

props Otto42.
fixes #25665.