fix filename/URL discrepancy for local scripts