The script is meant to be used as a script, not as a toolbox. leave it as it is. If you want to mess with the chroot, then just :
sudo chroot $PYRA_ROOTFS
This way the output analyser wont be in your way at all ;)
Though, if you do so, I would recommand running after messing in the chroot ...