changed way how resolving modules, looking for last folder name and align to that (node_modules/a/b/c will take a as a module name)