Support ruby 2.1.0

Fixes the installation of build dependencies for ruby 2.1.0.
The regex now matches against ruby versions without appended patchlevel.