Added check for data directory before starting the daemon. Fixes #1.