MIME type guessing - removed one duplicate call to libmagic