Adding script to check if a commit is reachable by remote branches