fix release-time branch checking