(fix) check if lockfile dir exists, and create it if not

[issue #11]
Merge branch 'issues/11_lockfile_dir'