don't print output with extra newline

This messes up the gyp+.d-emitting case because it's expecting only filename.cc, not an extra newline, so the \n breaks one-line-output.

It doesn't look like there's a good reason to add the \n here in the other case? But I could be wrong.