Add hostname to "local" values of prefix.
(Thanks to James Smith).