Copying relative files should no longer result in very deep directories

Instead of immediately adding relative files to `files`, they are tracked in `dupes` and added at the end. This way the relative files don't get processed and re-added.