pkg/host: refactor code
pkg/host: refactor code

Fix warnings pointed out by gometalinter.

xairy/syzkaller,google/syzkaller,google/syzkaller,google/syzkaller,xairy/syzkaller,xairy/syzkaller,google/syzkaller,xairy/syzkaller,xairy/syzkaller,xairy/syzkaller,xairy/syzkaller,google/syzkaller,google/syzkaller,google/syzkaller