Apply gir fixes using xmlstarlet. It is not as fragile as matching lines exactly. Unfortunately it also changes the formating to some degree. Bail out on errors. Don't ignore failed greps in pipeline.