I wonder if you tested this, since you mentioned that `mkdir` does not work in win32. 
Please file a new PR if necessary.