Get the platform name using mosys instead of the firmware ID.

Using mosys is more reliable than the firmware ID. A typo is also fixed.

BUG=chromium-os:19710
TEST=tested on Alex/ZGB and non-Alex/ZGB devices
$ run_remote_tests.sh --remote=$REMOTE_IP -a "xml_config=$OVERLAY_XML \
      servo_vid=0x18d1 servo_pid=0x5001" DevMode/control
$ run_remote_tests.sh --remote=$REMOTE_IP -a "xml_config=$OVERLAY_XML \
      servo_vid=0x18d1 servo_pid=0x5001" DevTriggerRecovery/control
$ run_remote_tests.sh --remote=$REMOTE_IP -a "xml_config=$OVERLAY_XML \
      servo_vid=0x18d1 servo_pid=0x5001" CorruptBothKernelAB/control.normal
$ run_remote_tests.sh --remote=$REMOTE_IP -a "xml_config=$OVERLAY_XML \
      servo_vid=0x18d1 servo_pid=0x5001" DevFwNormalBoot/control

Change-Id: Ic42c7666e70691956dee122894bd5080bc96219a
Reviewed-on: https://gerrit.chromium.org/gerrit/12897
Reviewed-by: Tom Wai-Hong Tam <waihong@chromium.org>
Tested-by: Tom Wai-Hong Tam <waihong@chromium.org>
Commit-Ready: Tom Wai-Hong Tam <waihong@chromium.org>
5 files changed