fix platform check

Change-Id: I81492c98142e32b3d3b33cd80d4d698ba4ae76b4