fixup platform detection in update-binary

Change-Id: I1d3a086f8ce9b429b2f6cc3fe3a464935475e3d0