Update update.sh

forgot to use $API_HOST
Merge pull request #1 from bgotink/patch-1

Update update.sh