Don't include working jobs in pending

Fixes #61