allow for ruby version that do not include a path level

This is to support building ruby packages that do not include a patch level. For example.. Ruby 2.1.0 release. Pushing upstream from Ninefold.