Fixed missing mkdir calls
Merge pull request #2 from katyo/master

Fixed missing mkdir calls