testnode: properly support deletion of chmod'ed files
The implementation from 0341ea0d did not cover the case where directory was readble but not writeable.
The implementation from 0341ea0d did not cover the case where directory was readble but not writeable.
This will create a new commit in order to revert the existing changes.