call nw-gyp only through node-pre-gyp to ensure binding.gyp variables are known