[POWERPC] Fix error handling in detecting legacy serial ports