Fix problems with sed expression