Correctly stop the build if we're on the wrong branch.