Fixed bug with creating directory on windows