Fixing dependency/dag creation for nodejs