make sure that the data directory is created