scripts : fixed git branch error issue