perf inject: Fix output from a pipe to a file