Fix shell scripts for older Arduino

Fix for Arduino 1.0.x errors when using shell scripts.