MimeTypes: extension name is lower cased before detecting. Optimized CommandLineFile and JavaFile.