when a file already exists, try to unlink, and then link the new one