Update "pbs flavor detect" to be more general and include slurm.