driver: use the common getSerialDriver function

also merge the fix from pigcs on linked devices