PBS plugin now waits for job to be executed and to return
before considering that the job is done (prior to this, it just waited
for the launching of the job).