Candlerb/show errors

Two commits:

* show pandoc stderr output
* fix the creation of pathnames