Fixed a bug related to making a directory structure on windows