Extract more prev_line.
Add "success":false for "build".
Consecutive lines may have matches.
strip line_prefix.
Consider "gmake" command.