Add implementation of rmdir