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.