Added rmdir funtionality.