fix dpl_setattr for directories (when path ends with '/')