Fix output directory path name.