The directory check wasn't my concern, I'm confused on how this code:

```
Pathname.new(working_dir).ascend do |file|
  possibles << file.expand_path if file.basename == '.chef' && file.directory?
end
```

will ever actually get a `.chef` directory. For example:

```
 % irb
irb(main):001:0> require 'pathname'
=> true
irb(main):002:0> p = Pathname.new(Dir.pwd)
=> #<Pathname:/Users/schisamo/dev/code/opscode-cookbooks/opscode-ci>
irb(main):003:0> p.ascend{ |file| puts "Path = #{file}, Basename = #{file.basename}" }
Path = /Users/schisamo/dev/code/opscode-cookbooks/opscode-ci, Basename = opscode-ci
Path = /Users/schisamo/dev/code/opscode-cookbooks, Basename = opscode-cookbooks
Path = /Users/schisamo/dev/code, Basename = code
Path = /Users/schisamo/dev, Basename = dev
Path = /Users/schisamo, Basename = schisamo
Path = /Users, Basename = Users
Path = /, Basename = /
=> nil
```