Adjusted output redirection for commands and chroot commands so that everything is redirected to the log file instead of the user shell