Fix sbatch --ntasks-per-core option from setting invalid SLURM_NTASKS_PER_CORE environment value.

Bug 1253