Fix #3968

The job output was not being cleanly parsed and returned from
lookup_jid