improve resolveTarget
Merge pull request #124 from maxvipon/patch-make

fix make.initNode