Revert "Updated mime_detect.inc to use internal drupal file_mimetype_mapping function"

This reverts commit 2723109fa38b839d532022a5057fecc35d1b8609.