contrib/online_ide: update signature of `compute_nit_dir`