ci-fairy: default to the main branch if it exists when checking commits
When checking commits, we fall back to master..HEAD unless a commit range is given. For projects that switched to main this obviously doesn't work, so let's check if main exists and prefer that, otherwise use master.
Fixes #41 (closed)