utils/slurm: extract script verification from dump_slurm_script
utils/slurm: extract script verification from dump_slurm_script

This makes testing slurm script generation easier to test


Former-commit-id: 684413c979377237fe1a358a5f6729d183e9eb00
Former-commit-id: 99583815edc9eee8af9342bce5d5289822560c5b [formerly bf022a6331fdb674277fd05197fe5a4c7dad35d5] [formerly 8901b4a01227700437d448765dd92b1fc7180d35 [formerly e8cbf3a11bb97ccd36afcb1628e8c4cc40f7473f]]
Former-commit-id: 1cda007f6cefc8e2745df4bff6be502010574e26 [formerly 9b93524a19a302c8cff4ce28ca7ccc533c0134dc]
Former-commit-id: 4ba3caf70328cb69ef27ef841b512507339b73ef
PolyJIT/benchbuild,PolyJIT/benchbuild,PolyJIT/benchbuild,PolyJIT/benchbuild