Fix mkdirP ternary to work with no outputDir

As the comment says, we don't want to call mkdirP(null); the logic here was reversed. The old code worked before because mkdirP(manifestDir) was executed before anything was written, but this code is what was originally intended.

@benjamn Mind merging and publishing a new version on npm?

cc @zpao