Fix issue with daemon socket on OS X

Fix issue where daemon socket returns invalid argument errors on OS X