Uses libmagic only for extentions which are not in typemap
Version up to 2.0.25