Narrow the scope of shared package dirs that are scanned.