Set the times when reading a dir on Windows.

Test doesn't pass but it's not gonna.
Merge pull request #895 from unknownbrackets/io-fix

Set the times when reading a dir on Windows