Exit nonzero when ls returns no results.

Running `npm ls -p arglebargle` does not show anything but exits 0.  It would be convenient if in that case it exited nonzero so that no results could be detected programmatically.

The first commit is a polyfill to make npm respect process.exitCode like node does now.