Use the full path of sl and not rely on $PATH in the same way cron and macOS GUI apps do for I assume this exact reason.
You have to know where the tool was installed or else be certain no other sl is on your path.
By the way, believe it or not, POSIX compliance requires existence of only two directories (/dev and /tmp) and three files (/dev/console, /dev/null, and /dev/tty) on the system; everything else is completely optional, including existence of /bin, /etc, and /usr.