Oust libmagic dependency