Fixes #8325 : Enhance the plugin object to use the gem path to understand where the plugin is installed