Better hostname file loading