When initializing datastore, create directory with correct permissions.