Looks like the CHROOT variable was getting clobbered. Silly boy.