revise add_externc.sed to match the expected pattern exactly