What do you think about traversing upward until you find a `metadata.rb`, then grabbing the `dirname` from that folder. I ask because I believe it's fairly common for people's CWD to be `recipes` or `templates`, especially during development, and rake does an ascending search. 

Alternatively, maybe set it to:

```ruby
File.expand_path(File.dirname(__FILE__))
```

What do you think?