Revert "Fix stat when subdirectory is a file"

This reverts commit 6c864097ef11da366fb4070e6ab9f34d6a293766
and fixes the broken Appveyor builds on GitHub.
2 files changed