allow 4.x versions of rails

This allows to install version 4.1 of rails and all upcoming versions until 5.0.