(base_name): Remove; now in dirname.h. (STREQ): Remove. (same_name): Handle the case where the basename ends in trailing '/'.