chore(change_mapper): add debug log explaining why package is root dep (#8976)
### Description
It can be confusing why a package is invalidates everything if it isn't
a direct dependency of the root package. This PR adds a function for
displaying paths between the root package and a workspace packages.
### Testing Instructions
Check debug logs:
```
2024-08-09T11:37:14.913-0400 [DEBUG] turborepo_repository::change_mapper: packages/logger/index.ts changes root internal dependency: "@api/logger"
shortest path from root: Some("// -> @api/util-integrations -> @api/logger")
```