Update device.lib.sh