require 'brewkit' def first_dir Pathname.getwd.children.each {|d| return d if d.directory?} nil end class Macfuse