extract rbx nightly hanling to a function, add new macruby nightly handling, update #1584