Support multi-line failure messages

Previously only the first line was checked for filtering to see if
it matches the failure message.

This would not match failure messages that contained newlines.