There was no need to change this node, as it should be looking for the temporary directory /home/root/.temp_nodered/
that was created at line 6 of the 'Generate commands' node.
If you can restore the 'Read filenames' node to my original settings and re-try. Or go through the flow and replace other /home/root/.temp_nodered/
url's with another url of your choice.
It should be;
functionGlobalContext: {
fse:require('fs-extra')
},