Revert back to mime type checking using mmmagic