fixed bug: loadScript does not work under Windows, when loading script
from resource and script path contains slash symbols.