simplify sed invocation a bit