fix incorrect base name offset from nftw when pathname ends in slash(es)
[musl] / dist /
drwxr-xr-x   ..
-rw-r--r-- 1253 config.mak