ncm-named: fix retrieval of named root directory from sysconfig
(including unit test for this extraction)

Fixes #241