Allow Debian and Red Hat systems to be renamed

Allow users to rename hosts on both Red Hat and Debian based systems, added more logic to see what the current host is before overwriting it.