Cleanup and update libmagic database