improve finding installed rubies when list is given, update #2446