Fixed robot/deploy.sh script for Ubuntu-based distribs.
Cleaning example robot code a bit.