POSIX: fixed infinite stat() loop with misnamed Path entry