Fix filenames
Add one more line break before configuration dump
Echo file instead of copying
Run apt-get autoremove when finished
Fix how's hostname updated
Flush before configuring iptables and use network/if-up.d to restore its settings