Switch to regex-based legacy platform detection