Restore the current working directory when the script exits.
Simplify __install_rpi_tools by using "cd ${CHROOT}".
Fix __patch_apt_conf: Do "cd ${CHROOT}" before executing the commands.