only emit cwd if it has changed
only emit cwd if it has changed

- ensures that the plugin is only registered once on an instance, and only at the `app` level
- improves logic for getting the first instance to use

jonschlinkert/base-runner,node-base/base-runner