Fix the "destPath" functionality and rename it to "outDir"