Made the pluginEnv variable set dynamically