native: set optional path with unix socket option

fixes #1045