This bug has been fixed in the upstream commit <https://git.launchpad.net/cloud-init/commit/tools/make-mime.py?id=5f14a0b1ca3079e4ab43d615840866a4b7d8df6a>.