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

inspired by [Nerian fix](https://github.com/Nerian/bootstrap-datepicker-rails/pull/49)
Merge pull request #4 from Eric-Guo/patch-1

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