Fix incorrect error message for localhost (in "node update-config")

fixes #7754
Fix incorrect return type for ScriptSignal::Invoke

refs #7744
Refactor apply rules