Fix sed expression to only print if substitution happened