script sets REPO_BRANCH if not set automatically