Dir.exists? -> Dir.exist? for Ruby 2.x