Adding a base_path property to the environment class define_plugin method.
Fixing issue with missing plugin dependencies in the gems module.