Don't recreate the log file for each package install phase.

Now the log contains the output of all install phases ('setup
configure/build/.../install') instead of only 'setup install'.