further improvement of makesymlinks.sh