Fix up regexps for target process action matching.

Fixes the "close" matcher, as well as "implements" and "implemented" and
unifies the syntax across the regexes.