Check that GEM_HOME include '/' and doesn't ends with it to prevent exception in split

Gem `spring` sets GEM_HOME to empty string, which causes exception in line: 
`(ENV['GEM_HOME'] && ENV['GEM_HOME'].split(/\//).last.split(/@/).first) ||`

`split` in case of empty string will return nil which not responds to `last`. Also `GEM_HOME` can be set as `'something/'` which will cause exception too after second split.
no need, because if there match - would be returned string (which acts as true in conditions). If there is no match - would be returned nil.
```
irb(main):001:0> path = 'asdf'
=> "asdf"
irb(main):002:0> path = $1 if path =~ /(.+)d/
=> "as"
irb(main):003:0> path = 'asdf'
=> "asdf"
irb(main):004:0> path = $1 if path =~ /(.+)t/
=> nil
```