npm v2 compatibility

Note: `~` might not be the correct matcher for all the dependencies