Fixed upgrade for data dir.