fix v7 plugin finding in require_plugin