modified mkdir to use recursive option
Merge pull request #1 from dave0783/tmpdir

modified mkdir to use recursive option