Fix setting persistent hostname on SLES guests.

Fix for issue #1160
Have tested this on SLES11