Support for dummy toolchain in the hierarchical module naming system

Would that be a reasonable fix for #980 ? It seems to work but I have no idea about potential side effects.
So, if we simply return `None` here, we need to adjust both `det_module_subdir` and `det_modpath_extensions` such that both are aware that `None` may be returned.