Modified check_epub to use mimetype instead of extension.