Fixed a bug related to making a directory structure in windows