Fixed get_mime_type()

Tested get_mime_type() with JSON
- problem with large amounts of files