Fix for error Failed to require socket.io from root

This is fix for https://github.com/LearnBoost/socket.io-client/issues/520