separate domain replacement and add config to buildout script.