minor cleanup in HierarchicalMNS.det_module_subdir