FIX update.sh

Use posix syntax to prevent occasional broken scripts
See http://stackoverflow.com/questions/12468889/bash-script-error-function-not-found-why-would-this-appear