Caching logic 

from https://github.com/heroku/heroku-buildpack-nodejs