ci_macosx.sh supports self-update

If the script is called with "update" as its first argument, the script will replace itself with the upstream master's version and exit.