Return a failure error code on build failure
Fixed the choice of attributes to rebuild, especially for PRs
Made git much more quiet, make the logs more readable