Make res_symlink smarter

Now, instead of blindly removing symlinks all the time, res_symlink can
determine if the link is already correct and skip to the next resources
without going through remediation.