fix exclusion of packages in workspace from depends_on list

This should address the latest problem with the prerelease job mentioned in lagadic/vision_visp#15.

@tfoote @wjwwood Please review.