Fix wmgHostname for maintenance scripts