split_basename: Strip trailing '/' from directory names
split_basename: Strip trailing '/' from directory names

This fixes a bug in `readdir` in fuse.

Signed-off-by: Ramkumar Ramachandra <5c355d1d38066ed0c5de420d67c1b5ed0687c4bd@gmail.com>

artagnon/phoenixfs,artagnon/phoenixfs,artagnon/phoenixfs