change mkdir to makedirs.

Use makedirs to create directory recursively.
Merge pull request #1 from zouguangxian/master

change mkdir to makedirs.