If --bindir / --sbindir point to a different location than --prefix, you cannot rely on SLURM_PREFIX to construct hard-coded paths to srun/slurmstepd. It looks like the build system would need to be adjusted to build SLURM_BINDIR / SLURM_SBINDIR macros that could be used instead.