Homebrew/homebrew — pull request #32747 by lepistone (2014-09-28 08:32:44+00:00)
Title: use File.directory? instead of Dir.exists?

Closes #32746.
Dir.exists? was introduced in ruby 1.9, but MacOSX 10.7 has ruby 1.8.7.