Remove extraneous \n in sed script