[BUGFIX beta] Ensure that each branch is bundled before building.

This resolves an issue that occurs when the `Gemfile.lock` differs between
branches.