Switch to extended regular expressions in testall grepping.

Using extended regular expression via escaping doesn't work on neither
HP-UX nor AIX, so we need to switch grep into real extended mode. Also
has the benefit of making the regular expression more readable.
Merge pull request #1556 from kacfengine/extended_regex_testall

Switch to extended regular expressions in testall grepping.