Switched to regex-based legacy platform detection