use zmq.IPC_PATH_MAX_LEN constant

less code duplication
better language
Merge pull request #3445 from gotcha/develop

use zmq.IPC_PATH_MAX_LEN constant