Clean up the lst files on failed install_packages
Make sure UTF-8 or ASCII locale is used
Write list of packages included in the image