Remove unnecessary else condition
Use local variable
Use Gem::Version for comparing bundler version