gem install fails when config doesn't have --user-install set

as gem should install in global directory if user install option is  not defined , it fails on split as that is nil so this should allow the gem installation without failing as default behaviour , unless user sets his config.