* build-livecd-root: better control when temp dir is cleaned

The temp dir in which the script does most of its work can be quite useful
in some situations, including investigating build errors; if an error
happens or the KEEP_TMPDIR environment variable is set, keep that temporary
directory around.