native: fix coding style
native: set optional path with unix socket option

fixes #1045
Merge pull request #1214 from LudwigOrtmann/issue-1045

native: unix socket path enhancement