Seems like a8718f3 broke hostname for RHEL5; 

Seems like a8718f3 broke functionality on RHEL5. 
Please see my change proposal.

This time I managed to test on 5.10 and 6.4