Libmagic support added. (still slow)