Handle npm's new cert bug

Adapted from https://github.com/heroku/heroku-buildpack-nodejs/commit/97a5856d3d4407e9fde82bac31cb308430e459f7