better platform name validation
Merge pull request #196 from Icenium/dragnev/fix-ice-build-error

better platform name validation