watcher: really fix hostname stuff

Commit 0ec59be was incomplete.
Merge pull request #16 from vincentbernat/fix/hostname-2

watcher: really fix hostname stuff