Correct wc call to could length of children address list
Simplify cut call to remove leading comma on sendmany command