Fix test for nds-client-config and add a workaround for OS X/MacPorts