Add support for unix sockets and reenable environment setting of ports