fix URL/filename discrepancy for local scripts
Merge pull request #3892 from birarda/master

fix filename/URL discrepancy for local scripts