prune: Added back --production support - fixes #4509

This adds back in `npm prune --production`.

Do you want me to add a test? I covered the code in `read-installed`[1] with tests.

[1] https://github.com/npm/read-installed/blob/master/test/dev.js#L19