Fixed error with parsing directories in windows.