Bring platform detection up to parity with main GPIO library.