Clear caches before slug compilation

node-gyp and NPM both cache resources required during `npm install`. They're not necessary at runtime and only increase the size of the slug, so let's clear them.