fix handling of last entry if there is none
[virtual-ldap] / etc /
drwxr-xr-x   ..
drwxr-xr-x - init.d