Fixes #3044

- Exclude forbidden source directories via grep, rather than with `OF_PROJECT_EXCLUSIONS`
- Add additional debugging output.