Fixing instance id given pathname issue in the environment class get_plugin method.