fix for using fqdn in hiera

Adding .localdomain to the node name breaks hiera setups that use "%{::fqdn}" in their hierarchy.

This commit does not add the domain if the node name already looks like a fqdn.