Handling non \w+ branch name pattern in git scripts