I think all this can be rewritten as
```js
if (options.copy || (options.copy === null && el.dest)) {
  grunt.file.copy(file, resultPath);
}
else {
  fs.renameSync(file, resultPath);
}
```