canonicalize xml files

This is not formal canoicalization but now al the xml configs look the same
with regaards to headers and formatting.
add some failure conditions for scrutinizer