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

Fixes #241
ncm-named: update pan templates to new layout