Fix: ensure the existence of the data dir at startup.

Closes #4