fix permissions on set-defaults.sh
check for brew before running brew update