Create target directory if not present.
Merge pull request #29 from philipa/master

Create target directory if not present.