Adjust for bash 3 use.
Update update script and fix more Bash 3 errors.