replace tokens in config files