Improve exception detection in Cucumber output.