Fix hostname update on CentOS 6