Strip newline from output of one command before feeding it to another

On my computer at least, the return value from line 204 ends in a newline. When interpolated into the string on line 205, it results in:
* the `-v` flag not being passed to `softwareupdate`; and
* a (harmless) error when `dorun` tries to execute `-v` by itself.