sed in place for advancemame changes
no need to split sed onto multiple lines (and it makes it no more readable in this case imho)