Use `ES_CLASSPATH` in the plugin script

Instead of hardcoding the path to Elasticsearch libraries as `$ES_HOME/lib/*`,
use the `ES_CLASSPATH` variable, which could be provided externally.

Also, infer the default value for `ES_CLASSPATH` unless not set.