Replace output expectation with OS-independent text.