sed: allow / at end to be more sed-like