require 'formula' def first_dir Pathname.getwd.children.find { |d| d.directory? } end class Macfuse