build/packages: Run the which systemctl in the chroot

Run the which systemctl detection within the chroot.
If the build server is running Debian, it will never get
into this condition even if the target is a RedHat based platform.