Generalize the exclude-patterns.

This accounts for app/plugin dirs too.