core: Don't set index uuid file if data dir is nil