Implemented rmdir, which fixes #37

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