fix matching ruby file names with ruby string, update #2744, update #2743