Fix problem with socket path length when using SHA256.

Note here that I only trim the length if we're using SHA256. Otherewise, we end up with an extra set of sockets when the minion doesn't change for most installs which are using MD5.