update to nicely run with rails 4
split the version matcher to make it more readable