reset broken build flag when reverting

If you revert to build that is flagged as broken all future builds will also be flagged as broken.