use SerialPort.list() instead of fs.readdir()  #1