Add fallback to get mimetype to fix x86 issue