Make directories before saving dot file for fnviz.
Added fnkc and paramfnkc cached variants.