Allow specifying an alternate socket path

This allows you to use this check if you have multiple mysqld's on the same server.