Reworked duplicating file feature

Now, it works by a real copy command, by using fs.copyFile. :)