fix detecting rubies without ruby-, update #2743