Fix stat when subdirectory is a file

Make sure that stat on Windows, both with and without cache, returns
"missing file" when running stat on notadir/foo where notadir is a
file.
2 files changed