Use console.log instead of util.print

On node v0.11, `util.print` is deprecated. This PR replaces calls to `util.print` with calls to `console.log`.