Revert "Remove MIME type method"

This reverts commit 26701711eac75f36a8f08ac5b16d9c7da73c9b9b. The MIME type issue had been previously encoutered but was here an xctool-related issue