In some setups (eg. macports) $tmpdir can expand to more than 100 symbols and tests fail with 'socket file name too long' errors. Using relative path to socket file fixes the issue.