Add platform detection, so we can look for the right serial device on each platform