make directory first, needed for lock file
Merge pull request #238 from lnussel/master

make directory first, needed for lock file