correct use of function mkdir
Merge pull request #2 from upliu/master

correct use of function mkdir