Fixed run_series to work on slurm cluster