Removed libmagic dependency