Dumps all permission nodes to a text file