Support building branches with gen_release.