Add collect to collect the output since the Capture() call
Add collect to collect the output since the Capture() call

KSmerda/gexpect,keybase/gexpect,ThomasRooney/gexpect,nareix/gexpect,davidwalter0/gexpect,tjyang/gexpect