Fix a bug in determining whether a task is async

This bug was causing async jobs to automatically succeed when the driver script finished. The pattern was grabbing the first component of the task id, which is a timestamp, not the job name.