fix(scripts/flow/build): refactor versioning checks and feature suffix (#3879)
- Move GA and release-branch checks before feature-branch handling to short-circuit earlier and remove duplicated checks. - Replace hyphens with dots (not underscores) in feature branch suffix to fix it to match semantic versioning. (commit: fecdc57)