adjusted code to changes of Perl 5.18
little but use reasonable change
added support to specify local HTMLs files (which then will be processed)