Update tun.rb

Update example script to use IO#sysread