Sed the config file for cloud-init.