Construct ruby version more sanely