Plugins: Support usage of ES_JAVA_OPTS in plugin commands

As that environment variable can contain elasticsearch specific configuration
like the path to a configuration, it makes sense to support in both
elasticsearch commands.