improved IOUtils.getAppropriatedType for ExtUtils