Use kernel->locateResource instead of __DIR__

fix insight issue : Absolute path constants __DIR__ and __FILE__ should not be used