[BUGFIX beta] Handle beta branch builds properly.

The initial implementation of the `FORCE_BRANCH` flag did not
properly account for all scenarios.  This attempts to fix an
issue with builds of commits pushed directly to the beta/stable
branches.
Merge pull request #3891 from rjackson/update_ember-dev

[BUGFIX beta] Handle beta branch builds properly.