Update support for Ubuntu 14.04 and later versions, Update few error handlings, fix for the RHEL & SLES hostname bug.