fix a bug with finding default branch
Make runners smarter