Add sanity checks to prevent valid hostnames that are invalid Puppet env...

...ironment names in puppet.conf.