Fix for creation of data dir.