fix link.sh to run from any directory