Clarify the newfile logic

Invert the logic to avoid needing so many negations.  Also, increase
the number of nodes written so that the test cases can ensure the
right number of files are created.