fix bug w/ multiple ENV substitions in `spice to`

was accidentally attempting to replace the same variable during each
loop iteration. now uses the newly found variable.