Fix exception detection in Cucumber output