CONFIG REWRITE: support for dir and slaveof.