Refactor syntax to exclude VCS folders from grep commands

This PR implements:

- A simplified version of the syntax to add the exclude argument to the grep command (drop the `for..in`)
- Add `.bzr` folders to the list of folders to ignore (fixes #3028)
- Uses the unaliased command in the grep-flag-available function (by using `command`)