Fix bare 'except' clauses to 'except Exception' in build.py