Create directories if they don't exist.
Merge pull request #284 from joneshf/master

Create directories if they don't exist.