Consistently use log.write instead of console.log

Found a couple more places where console.log could be swapped for log.write when working with the logstream option.

This also fixes a bug in my previous pr (#3434) where install output was missing a newline at the end.