fixed and improved version checking for SLURM in TMS/src/CMakeLists.txt