perf record: Remove newline character from perror() argument