add extra check for bin/ruby while installing ree, update #1870