BUILD-355 Make buildlogger use temporary files to buffer log output