Improve apt-init to be more self-contained