Those two lines can just be `let output_dir = Path::new(args[2].as_slice());`.