link.sh: only remove target if it exists