fix a bug where the result file cannot be saved if project path contains whitespaces