Use dir.makepath when creating output directory
Use dir.makepath when creating output directory

Don't exit with error if an intermediate directory doesn't exist.
Also, handle directory creation failure.

cjtallman/LDoc,stevedonovan/LDoc