Fix find remote when building BWC
Fix find remote when building BWC

We look for the remote by scanning the output of "git remote -v" but we
were not actually looking at the output since standard output was not
redirected anywhere. This commit fixes this issue.

Relates #27308

vroyer/elasticassandra,strapdata/elassandra,vroyer/elassandra,strapdata/elassandra,vroyer/elasticassandra,vroyer/elasticassandra,strapdata/elassandra,vroyer/elassandra,strapdata/elassandra,strapdata/elassandra,vroyer/elassandra