Fix paths for hapi.js and for socket.io