fix a bug in restore.sh

some symbolic links exist but the files may not.