Fix package variable building, fix chroot calls