rose edit: fix optional configuration names with hyphens

This fixes optional configurations that contain hyphens in the names - current behaviour is to truncate the name after a hyphen.

The demo/rose-config-edit/demo_meta/app/09-opt app can be used to test this.

@arjclark, please review (after this next release).