Fixed data directory initialization.