Script for Scriptish local cache, bug fix

I totally forgot about [the Scriptish script](https://github.com/kynikos/wiki-monkey/issues/135#issuecomment-36446784), plus there is also fix for #159.