A mime detection library that used the freedesktop mime magic file and globs