Fix for slurm backend dropping jobs

The problem was that the command line arguments were getting too long, so
instead of asking for specific jobs we just parse the state of all jobs.