optimize chroot shell environment