Fix loading of multiple scripts from path

There was an issue with loading scripts from path when ClassLoaderResourceAccessor is used for loading resources