fix for new versions of node

fixes `Error: require.paths is removed. Use node_modules folders, or the NODE_PATH environment variable instead.`