Analyse a directory structure and find packages resolvers for each sub-directory.
The resolvers are generally the same that would be found by using
discovery.dart library on each sub-directory in turn,
but more efficiently and with some heuristics for directories that
wouldn't otherwise have a package resolution strategy, or that are
determined to be "package directories" themselves.