Fix comparisons against results of getfqdn

The results of `socket.getfqdn('localhost')` can vary widely per platform.  Ask Python for the fqdn before comparing with the stacking tests.