Set railties dependency to be >= 3.1 (support for rails 4)