Allow the output dir to be a provider of upstream analysis.

Previously it was always excluded. Now it's only excluded if it
doesn't have an explicit entry in the upstream analysis map.

This is necessary for chunked builds that output to the same
output directory.