Create 'data-dir' if it doesn't exist.

* Added code in OnInit() which checks if 'data-dir' exists, if not creates it.