fix(task): use explicit workspace root check in directory-name fallback (#33540)
## Summary
- Replace the `has_name` heuristic in `matches_package` with an explicit
workspace root check
- The previous approach used the presence of a `name` field as a proxy
to exclude the root from directory-name matching, but this fails when
the root has a name (would incorrectly match) or when a member lacks a
name (would incorrectly skip)
- Now compares `folder_url == workspace.root_dir_url()` directly, making
the exclusion reliable regardless of whether configs carry a `name`
field
- Addresses
https://github.com/denoland/deno/pull/33499#discussion_r3143527626