modified link.sh to allow removing old linked files