Replace MimeTypeDetector with Fileinfo