fix a issue in setting fileDir: only set fileDir when current verision is downloaded