Add 4 to version sniffing code

Fixes #336
It's going to break again when people start to use Rails 5, which would silently send sensitive data to Airbrake.