fixes to run_solr script for solr 3.6.x