Handle npm's new cert bug

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