Fix deprecated yq --tojson flag in check-git-dependencies
Replace `-j` with `-o=json` as the former has been deprecated in newer versions of yq, causing the deprecation warning to corrupt the JSON output and break jq parsing downstream.