Modified the decode_logs.rb script

Yo I just made some changes to your script so that it parses logs for sites that don't use index.php as the main page.  It works without erros as far as I can see.  Merge if you like it.

Thanks