Fix hosts file creation class
Merge pull request #583 from monroid/fix_hosts

Fix hosts file creation class