[FIXED] gem installation process not interrupted.

  if RubyGem not found then following gem installation proccess will
  be interrupted.
To install homebrew formula.