Fix socket discovery on computers using custom PM2_HOME

I know that this interface library is discontinued, but I still find it very useful to getting logs out of pm2. I couldn't find a way to receive log stream on new official version. I would really appreciate if this patch could be included and published to npm registry. Thanks.