Windows: Don't test ispath on deleted file or dir

These are failing with "stat: operation not permitted (EPERM)". There may still be file handles open so the unlinked file and removed directory cannot be stat-ed.