scripts/munge_rpath: added script guts