add a test for stat()ing a directory
add more tests for stat()ing a directory
try to fix stat()ing directories on windows
Merge pull request #792 from nico/statdir

try to fix stat()ing directories on windows in statcache code