Fix dynamic cache

This fixes dynamic cache by having one dynamic cache per `[path +
options.external + options.debug]` combo
Merge pull request #37 from ForbesLindesay/fix/dynamic-cache

Fix dynamic cache