fix dirname to handle input of form "foo/" correctly
[musl] / crt / crti.c