Upgrade to Cmd 4.0.x and ST 2.2.1
Platform detection