Fix parsing build status with parenthesis in name

Jenkins allows custom names for the builds.  If there were parenthesis
in the name, the build status parsing would fail.  This corrects it
by only looking for the last pair of parenthesis in the line, and falls
back to searching the whole string for the status, which handles cases
that include the previous successful build name as part of the status.

Change-Id: Ia48dd343c694e44dfd1d33a05ac37ac56e0d236d