fix handling of :branch option of gem.conf
Merge pull request #962 from masahino/fix_branch_option

fix handling of :branch option of gem.conf