Fix: unterminated replacement in sed