add mruby-require
use perl instead of sed

how to sed is different between linux and bsd.