added missing ext on nodenpm
fix for wincache ext
added additional type check
place var on all exec paths
place var on all exec paths