Instead of just stat(2)ing the dest file to see if it exists, be sure to
distinguish correctly between the dest file, and the file pointed to by
the dest file in the case that the latter is a symlink.