init.common: Be sure all logs are uploaded

In some cases we had an empty log... let's fix the logic and put
everything in the log file before gzip it.

Let's also keep the original file when compressing to avoid loosing
/log.