improve symlink install logic to avoid work when possible