fixes escaping in sed command