find: fix handling of trailing slashes in -name PATTERN comparisons