Fixed data directory creation.