refactor dir creation into its own method
refactor dir creation into its own method

zzak/mruby-cli,suzukaze/mruby-cli,kbrock/mruby-cli,modulexcite/mruby-cli,hone/mruby-cli,janusnic/mruby-cli,toch/mruby-cli