Install ruby in a smarter way