Update travis-solr.sh

Make the script a bit more intelligent.