Merge pull request #164 from hunner/patch_mkdir