added version checking of ruby-buils, rbenv and brew.
extracted ruby version class to another file