Changed linkall.sh to accept an environment variable