Print full build log instead of only the last 10 lines

(cherry picked from commit f00dc68ef7f6836705554dcd21d02630fe4a0ccb)
Treat all flags of a package as interdependent.

There was an open bug that could cause conflict sets to be
computed incorrectly if flags were involved in the conflict
set. Incorrectly computed conflict sets can lead to the solver not
finding solutions even though they actually exist.

Because I decided that computing flag dependencies correctly is tricky
and probably not worth the effort, we're now treating all flags (of a
package) as mutually dependent. This means that if any flag choice ends
up in a conflict set, then it's as if all flag choices (of the same
package) are in that conflict set. This is potentially slower for
packages having many flags, but it should at least be correct, because
it's conservative.

(cherry picked from commit 3f7775684f1fadba7b3dd86c144909a811970d8e)
Remove an unnecessary 'createDirectoryIfMissing' call.
(cherry picked from commit 5c46e7853a09a484698064824b7bf72c5c761993)
Don't attempt to rename dist if it is already named correctly

(cherry picked from commit e0c9fec8ec0815f973f9044d409e2b5d5d64aa47)