* check_polkadot.sh: use the branch matching substrate's branch if possible * convert to grep * update comment