iotlab driver: applying Jordan's fixes to the driver