Merge metadata.rb with client-to-client and client_config_dir