Update rewrite_cond to work.
Merge pull request #14 from hunner/bugfix_rewrite_cond

Update rewrite_cond to work.