Fixes #8325 : Enhance the plugin object to use the gem path to understan...

...d where the plugin is installed