fixes ZEN-13733: fix variable shadowing of endpoints

DEMO:
```
zenny@ip-10-111-3-87:~$ serviced service start redis
Service scheduled to start.
zenny@ip-10-111-3-87:~$ serviced service attach redis
bash-4.2# netstat -plant  |grep LIST
tcp        0      0 0.0.0.0:6379            0.0.0.0:*               LISTEN      19/redis-server *:6 
tcp        0      0 0.0.0.0:5042            0.0.0.0:*               LISTEN      1/serviced          
tcp        0      0 0.0.0.0:5043            0.0.0.0:*               LISTEN      1/serviced          
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      1/serviced          
tcp        0      0 0.0.0.0:8444            0.0.0.0:*               LISTEN      1/serviced          
tcp6       0      0 :::6379                 :::*                    LISTEN      19/redis-server *:6 
tcp6       0      0 :::22350                :::*                    LISTEN      1/serviced          
```