allow specification of common lib_dir for html formats