Fix issue with daemon socket on OS X

Fix issue where daemon socket returns invalid argument errors on OS X
Merge pull request #782 from wozz/daemon-fix

Fix issue with daemon socket on OS X
Merge branch 'master' of github.com:spesmilo/electrum into clean