modified mkdir to use recursive option
Merge branch 'tmpdir'