fix branch name recognition when no cli opt passed
fix branch name recognition when no cli opt passed

(cherry picked from commit 09e01d62cb74aba6158943e0418c94f09e136248)

OSTC/php-sdk-binary-tools,OSTC/php-sdk-binary-tools,OSTC/php-sdk-binary-tools