(Close PR #61, squashed by @jf)

Fixed duplicated "global" gemset when using `rbenv gemset active` with bash-3.2

Alternative fix for duplicate "global" gemset from `rbenv gemset active` with bash-3.2

Fixed duplicated "global" gemset in `rbenv gemset active` for bash-3.2

Adhere to style guidelines