Pack should be more precise with putting mimetype first

I was being a bit careless with the method for adding 'mimetype' files as the first entry in the archives.

Now I have refactored to be more careful (ODT demonstrated the bug). I think this is a safe merge.