Fix SED to write back to file