fixed a bug determining if a job is finished
Merge branch 'master' of https://github.com/vicwind/warden