buildpack: fix issue with cache not being retained