ncm-named: fix retrieval of named root directory from sysconfig

Fixes #241