Ensuring data directory is created