Updated so that the cluster name is set, previously the ES_CLUSTER_NAME env var was being ignored.