Instead of applying it only for the final `chroot`, this adds a chroot helper function to apply it appropriately for every chroot, including making sure that we find `chroot` in our current host `PATH` in case it's in a strange place. Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com> Upstream-commit: 91770ec9e4b5bce330ddebc421248d275549ccc5 Component: engine