fix enumerate_serial_ports for *nix system