NetBSD PR/48182: Fix rmdir -p handling of top-level (root) directory. closes #272 Change-Id: I5a69ac84ca236ca03feea49dc9c84537147c2d65