Fix some problems.

I fixed problem in function rrmdir witch return value.