Implementing a better solution for ruby-version.