According to [`path.resolve`](http://nodejs.org/api/path.html#path_path_resolve_from_to) documentation you don't have to test for absolute path, `path.resolve` will handle it for you. You should be able to replace this whole block with:

```js
var newPath = path.resolve(opts.cwd, dest, file.relative);
```

I would also recommend adding some unit tests to verify that relative paths in `dest` are now supported.