Use Dir.mkdir and Dir.exist? in helper.rb.

I had some troubles since `mkdir` and is not [File](http://www.ruby-doc.org/core-2.0.0/File.html) method defined in [Ruby core](http://www.ruby-doc.org/core-2.0.0/).