changed init follow in whooshengine.py to handle no dir created for database