check_coretap_git_origin was not working as intended. Permit Linuxbrew/homebrew-core as a valid origin. Factor out check_coretap_git_branch.
This serves a similar purpose to the HOMEBREW_FORCE_HOMEBREW_ORG variable but applies to more settings.