Respect Bower's cwd setting.

Bower has a `cwd` configuration option that we should take into account when constructing the bower directory path and when looking for *bower.json*. If `cwd` is not defined it defaults to the current directory, so this doesn't break anything.