Ensure output file directory exists in ProcessCache.prototype.linkP.

Closes #32.