Save config on device rename (fixes #957)