Fixes #453 again.

Replace references to console with process.stdout in NW background script.