branch name extraction fix