make mkpath() handle windows paths
Merge pull request #2 from FROGGS/patch-2

make mkpath() handle windows paths