Use a better recursive rmdir implementation