Fix TaskChain job splitting when KeepOutput used

add Seangchans fix as well