automatic detect the architecture and codename