scripts/munge_rpath: check for symlinks before munging