some fixes to scripts
Merge branch 'master' of https://github.com/robotology/icub-main