Moved datadir setting inside config_hash, which is the correct place.