Correcting permissions throughout the tree when appropriate