Use platform.node to find out the hostname (#2663)

Use `platform.node()` instead of `socket.getfqdn()` or
`socket.gethostname` as discussed on bug #2663 [1]

[1] https://github.com/ansible/ansible/issues/2663#issuecomment-16341359