Improve regexp to avoid failures on HPUX

We were looking for two strings in output, and for that purpose used two
regcmps. One of those included '.*' after the desired string in
question, the other just '*'. The latter failed on HPUX because of spam
emitted for every cf-agent run, so the regcmp failed.
Merge pull request #1543 from aappilattoq/master

improve regexp to avoid bogus fails on HPUX