Implemented rmdir

Provides a ```rmdir``` implementation consistent with GNU ```rmdir```.