Working around bugs in cloud-init