Set a default hostname based on a var