Don't check that partial paths are directories.

Fixes issues with cross-drive directory symlinks on Windows.
These things stat as regular files.