chore(clean-shrinkwrap): add a utility to clean up the shrinkwrap file

This is to deal with https://github.com/npm/npm/issues/3581

See the previous commit for more info.

Closes #6672