you can verify the PATH environment variable you are using in the shell from which you execute the slackbuild with this command
set | grep PATH | grep bin
blind guessing, maybe you have some ~/.bashrc ~/.bash_profile or /root/.bashrc /root/.bash_profile that set differently your PATH variable.
try also becoming root with the command
so that the root user get his correct PATH env var.