Build improvements

 * Fast finish: mark a build as passed or failed sooner, without having to wait for non-important builds.
 * Don't cover the __main__ section of the script.