Validate platformName Fix #146