Update rewrite_cond to work.