Added rmdir code.