Fix conditional Rails version for Travis CI