updated jobid retrieval logic from subprocess call result.