Replaced os.Getenv("HOME") with go-homedir package in hosts folder

Replaced os.Getenv("HOME") with go-homedir package in hosts folder