ci/run_github_autoreply.sh: fix pip3 compatibility issue

Some versions of pip3 do not support the
"--break-system-packages" option.
Updated the script to handle both cases
gracefully and ensure broader compatibility

Signed-off-by: Arthur She <arthur.she@linaro.org>
Change-Id: I625b847531e452a21b3520a788448dcc31a1995a
diff --git a/ci/run_github_autoreply.sh b/ci/run_github_autoreply.sh
index 2651265..8b8cc05 100755
--- a/ci/run_github_autoreply.sh
+++ b/ci/run_github_autoreply.sh
@@ -9,7 +9,9 @@
 python3 -c "import github"
 if [ $? != 0 ]
 then
-	yes | pip3 install pygithub --break-system-packages
+    PIP_OPT="--break-system-packages"
+    pip3 --help | grep -q "break-system-packages" || PIP_OPT=""
+	yes | pip3 install pygithub ${PIP_OPT}
 fi
 
 # Run bot