Fix a few bugs w/ outputPath.