fix some coverity chroot() releated warnings