exclude fixes

Testing Done:
some tests are failing while trying to find a Scala class in the output. it's failing even without my changes. waiting for Pants OSS CI before trying to run our ci.

in the mean time trying to investgate why it's not working locally.

Reviewed at https://rbcommons.com/s/twitter/r/1418/