native: unix socket path enhancement

* set optional path with unix socket option
* fix coding style