Create directories on Windows and set permissions correctly