Fixed bug where Elasticsearch could not write in data directory because of relative datapath in config file