Fix hosts file creation class