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

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