[PTFM-5907] Making build_curl.sh work correctly on Mac