Loop over each minion and grab the 'ret' value from the return

Fixed non-existent variable name.
Merge pull request #3265 from whiteinge/sysdoc-runner

Fix the sys.doc runner