Print only the full result

This avoids printing a new line for every time there's no result.  Fixes ros-infrastructure/jenkins_tools/issues/9
Avoid busy waiting and make sure to capture the full output
Merge pull request #4 from tfoote/master

Patch for call_with_list