@pidster I see, it can be changed to: 

if (main.endsWith(SUFIX)) loadScript(main) else loader.loadClass(main)