Fix Classpath issues when initialising ElasticSearch client