Added logic to handle existing destination file during copy