use new method to check write privileges to the hosts file in linux/unix

Signed-off-by: huhamhire <me@huhamhire.com>
Merge branch 'HostsUtl-Desktop-Utls'