Remove cruft from piping stdout to file