puppetdb,pupptemaster: use tcp6 for port checking

Use tcp6 instead of tcp for port checking since it listens with tcp6 status

```
root@server:/var/lib/jenkins# netstat -tlnp | grep -e '8081' -e '8140'
tcp6       0      0 :::8140                 :::*                    LISTEN      4524/apache2    
tcp6       0      0 10.151.68.48:8081       :::*                    LISTEN      5529/java       
```