add backward compatibility for mime_content_type for older versions of PHP