src: fixed bug with mime type detection