[arch-general] Replace python-magic from darwinsys with ahupp implementation