sed is not always available, so stop using it.