Add pre-requisite checks for existence of hostname and dnsdomainname for
initconfig. Closes #2.