Treat rails 4 the same as rails 3

The version detection code was only looking for rails 3 so make it look for anything 3 or greater.