Use copy-dereference instead of deprecated copyRecursivelySync

We've deprecated `copyRecursivelySync` in favor of the node-copy-dereference package.

I've verified that the build output in `dist` stays the same byte-by-byte with this change.