fixing the bug in puting hostname in /etc/sysconfig/network