ECL-294 Let Solr create directory by itself.
ECL-294 Adjusting script for older version of Solr APIs.