tiny refactor on configure.sh to keep installMac function less clutered