script to replace symlinks