Fix sed syntax in diagnostics script.