fixed bug with Rails 4 detection that would impact other engines