zurb/foundation-apps — pull request #98 by AntJanus (2014-11-13 02:34:20+00:00)
Title: Gulp directory issue

So, it turns out it's pretty difficult to figure out how and where a module has been initiated from. Luckily, this is gulp and most likely anyone running Gulp will be running it at the root of their application. So process.cwd() should give us the right directory.

If it keeps failing for people, there's also [callsite](https://www.npmjs.org/package/callsite) package to crawl up a stack to find the right file that initiated the gulp module. If that still fails, we'll need to add a permanent requirement of adding `{ directory: __dirname}` as part of the module declaration.