Fixes #3044 (Makefile project path source exclusions)

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