Fixed problem with DIR types on Windows