fix recursion on rmdirr

@icewind1991 @PVince81 please review

@karlitschek @craigpg might be OC7CE relevant as we all fall over this issue from time to time - would be good to get rid of this 
Indeed - thanks for spotting