Fix to work with later modules
Create output directories if they don't exist...
Merge pull request #1 from wolfsage/master

Needed these fixes to work with later deps and auto-create output directories for me