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 
Are you sure about the type. I would have guessed \SplFileInfo.