Allow nodesDir to be an array of paths