scanelf: fix %p format string for EAPI 7 (bug 659228)

For all scanelf path arguments that are used in processing of
the %p format string, normalize the argument to have a trailing
slash, so that the leading slash is consistently stripped in
the expansion of the %p format string.

Bug: https://bugs.gentoo.org/659228
3 files changed