Added ability to create target output directory if one's not present

This helps with testing though it comes with a caveat that we don't know
what the permisisons for the parent folder should be so we leave it
alone as-is.
Merge branch 'eos-shell/2654'