A new version of the Sask::Script set of tools has recently been posted. Link to source code Invoking it is pretty simple:
sfx_resolve_urls.pl --first-time
The real benefit to the new version is the reduction of source code files. It is still written in PERL however.