Use hostname as a default prefix

Use hostname as a default prefix (can be disabled with
`-nodefaulthostname` option).