toolchain: Fix update script for macOS

readlink -f is not supported on macOS
brew is already a requirement to build for macOS
diff --git a/update_external_sources.sh b/update_external_sources.sh
index a33c850..9db212f 100755
--- a/update_external_sources.sh
+++ b/update_external_sources.sh
@@ -3,7 +3,13 @@
 
 set -e
 
-CURRENT_DIR="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
+if [[ $(uname) == "Linux" ]]; then
+    CURRENT_DIR="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
+elif [[ $(uname) == "Darwin" ]]; then
+    # Get greadlink with "brew install coreutils"
+    CURRENT_DIR="$(dirname "$(greadlink -f ${BASH_SOURCE[0]})")"
+fi
+
 REVISION_DIR="$CURRENT_DIR/external_revisions"
 
 GLSLANG_REVISION=$(cat "${REVISION_DIR}/glslang_revision")