Fix unterminated sed command