Factorisation of the unix socket path computation