Moved DEBIAN_FRONTEND environment variable to base. Some miscellaneous changes.