Emit event on cwd