pg_testdb: use "unix_socket_directory" if available

Versions earlier than 9.2 require this.