Various minor tweaks to copy_mime_data rake task

Specify the mime-types version in the code, and include that
information in the generated file.

More variable name tweaking to make things more clear.

Fix some minor typos.