Changed the MIME Filetype Detection to use path/filepath