Delete files before overwriting them in copyFile. Allows to rebuild an application while it is running on Linux.