make it work with the latest elasticsearch

using environment instead of settings, because when setting converts to environment, it does not contains the config file information.

Problem described in: https://github.com/medcl/elasticsearch-analysis-ik/issues/18