[PRD-999] move hosts_file class call in os_common