Improve hosts file update on b2g