system: scripting: fix control name lookup

Fix resolution of control paths that contain only a control name.