brp-40-rootfs: reduce number of calls

by removing bash loop and let sed script (ldd.sed) prepare input