windows fix for makeDirectories