Fix /etc/hosts overwriting

Resulted in MMS agent not being able to shutdown instances