Fix bug in makesymlinks.sh