Rails 4 version fix (comparison of Gem::Version with String failed)

inspired by [Nerian fix](https://github.com/Nerian/bootstrap-datepicker-rails/pull/49)