Do not update the repository when UPDATE_REPOSITORY is 0 in reality.
Add install/update scripts for Mac OS under tools-mac.